package com.ficus.road.maintain.client.Response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 下立交视频相关
 */
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class VideoAddressResponse {
    /**
     * 结果编码
     */
    @JsonProperty("code")
    private String code;
    /**
     * 结果数据
     */
    @JsonProperty("data")
    private VideoInformation data;
    /**
     * 结果信息
     */
    @JsonProperty("msg")
    private String msg;

    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonIgnoreProperties(ignoreUnknown = true)
    @Data
    public static class VideoInformation{
        /**
         * 下立交视频播放地址
         */
        @JsonProperty("address")
        private String address;
    }
}
